// vite.config.js
import { fileURLToPath, URL } from "node:url";
import { defineConfig } from "file:///D:/Desktop/oasis-safe-walk-vue/oasis-safe-walk/node_modules/vite/dist/node/index.js";
import vue from "file:///D:/Desktop/oasis-safe-walk-vue/oasis-safe-walk/node_modules/@vitejs/plugin-vue/dist/index.mjs";
var __vite_injected_original_import_meta_url = "file:///D:/Desktop/oasis-safe-walk-vue/oasis-safe-walk/vite.config.js";
var vite_config_default = defineConfig({
  plugins: [
    vue()
  ],
  resolve: {
    alias: {
      "@": fileURLToPath(new URL("./src", __vite_injected_original_import_meta_url))
    }
  },
  server: {
    proxy: {
      "/api": {
        //获取路径中包含了/api的请求
        target: "http://localhost:8080",
        //后台服务所在的源
        changeOrigin: true,
        //修改源
        rewrite: (path) => path.replace(/^\/api/, "")
        // /api替换为''
      }
    }
  }
});
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcuanMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCJEOlxcXFxEZXNrdG9wXFxcXG9hc2lzLXNhZmUtd2Fsay12dWVcXFxcb2FzaXMtc2FmZS13YWxrXCI7Y29uc3QgX192aXRlX2luamVjdGVkX29yaWdpbmFsX2ZpbGVuYW1lID0gXCJEOlxcXFxEZXNrdG9wXFxcXG9hc2lzLXNhZmUtd2Fsay12dWVcXFxcb2FzaXMtc2FmZS13YWxrXFxcXHZpdGUuY29uZmlnLmpzXCI7Y29uc3QgX192aXRlX2luamVjdGVkX29yaWdpbmFsX2ltcG9ydF9tZXRhX3VybCA9IFwiZmlsZTovLy9EOi9EZXNrdG9wL29hc2lzLXNhZmUtd2Fsay12dWUvb2FzaXMtc2FmZS13YWxrL3ZpdGUuY29uZmlnLmpzXCI7aW1wb3J0IHsgZmlsZVVSTFRvUGF0aCwgVVJMIH0gZnJvb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